package com.basic.modules.sys.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SysEmailModel {

    private Long emailConfigId;

    /**
     * 状态 1-已读 2-未读
     */
    private String readStatus;

    /**
     * 邮箱地址
     */
    private String emailUrl;

    /**
     * 1-阿里云企业邮箱 2-QQ邮箱
     */
    private String emailType;

    /**
     * 标题
     */
    private String subject;

    /**
     * 内容
     */
    private String content;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    private String messageId;
}
